\documentclass[12pt,a4paper,oneside,openright]{book}
\pagestyle{plain}
\usepackage{geometry}
\usepackage[italian]{babel}
\usepackage[applemac]{inputenc} 
\usepackage{graphicx}
\usepackage{indentfirst}
\usepackage{fancyhdr}
\usepackage{frontesp}
\linespread{1.7}
\addtolength{\hoffset}{1cm}
\author{Andrea De Pirro}                        
\date{}
\pagestyle{fancy}\addtolength{\headwidth}{20pt}
\renewcommand{\chaptermark}[1]{\markboth{\thechapter.\#1}{}}
\cfoot{\thepage}
\rhead[\fancyplain{}{\bfseries\leftmark}]{\fancyplain{}{\bfseries}}
\lhead[\fancyplain{}{\bfseries\thepage}]{\fancyplain{}{\bfseries\rightmark}}
\begin{document}
\title{Ottimizzazione delle prestazioni di un'applicazione web}
\providecommand{\autore}{Andrea De Pirro}
\providecommand{\principaladviser}{Prof. P. Merialdo}
\providecommand{\firstreader}{Jacopo Romei}
\providecommand{\annoacc}{2006--2007}
\providecommand{\corso}{Informatica}
\titlep
\include{intro}
\tableofcontents
\include{pmh2}
\include{bytecaching}
\include{mysql}
\include{symfony}
\include{various}
\include{conclusioni}
\include{bibliografia}
\end{document}